package com.xjtu.se.homework.client.history.dao;

import com.xjtu.se.homework.client.history.bean.HistoryResult;
import com.xjtu.se.homework.client.history.dto.HistoryDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface HistoryDisplayDao {

    List<HistoryResult> findAllHistory(HistoryDto dto);

    @Select("select * from history where u_id = #{u_id}")
    void modify(HistoryDto dto);
}
